package com.ys.constant;

import java.util.HashMap;
import java.util.Map;

public class AppConstant {

	public static String DATABASE_NAME = "ys_web"; // TODO 数据库名称，新项目需要改动

	public static String URL_GRID = "/api/admin/RP_NAME/search"; // 表格数据请求路径
	public static String NAME_SHIRO_AUTH = "RP_NAME:view"; // shiro授权路径

	public static String AES_KEY = "pouejyysscdefg12"; // AES秘钥

	/**
	 * 密码加密混淆码
	 */
	public static final String PASSWORD_SALT = "dhecp";

	public static String RMB = "¥";
	
	//1688刷新ACCESS_TOKEN地址
	public final static String REFRESH_TOKEN_URL = "https://gw.open.1688.com/openapi/param2/1/system.oauth2/getToken/YOUR_APPKEY?grant_type=refresh_token&client_id=YOUR_APPKEY&client_secret=YOUR_APPSECRET&refresh_token=REFRESH_TOKEN";
	
	//创建采购订单前预览
	public final static String VIEW_BEFORE_CREATE_ORDER_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.trade/alibaba.createOrder.preview/YOUR_APPKEY";
	
	//创建采购订单
	public final static String CREATE_ORDER_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.trade/alibaba.trade.createCrossOrder/YOUR_APPKEY";
    //取消采购订单
    public final static String CANCEL_ORDER_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.trade/alibaba.trade.cancel/YOUR_APPKEY";

	//将产品ID铺货到产品列表中
	public final static String PUSH_PRODUCINFOURL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.product.push/alibaba.cross.syncProductListPushed/YOUR_APPKEY";

	//根据产品ID获取产品信息
	public final static String GET_PRODUCINFOURL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.product/alibaba.cross.productInfo/YOUR_APPKEY";

	//获取ACCESS_TOKEN址址
	public final static String ACCESS_TOKEN_URL = "https://gw.open.1688.com/openapi/http/1/system.oauth2/getToken/YOUR_APPKEY?grant_type=authorization_code&need_refresh_token=true&client_id=YOUR_APPKEY&client_secret=YOUR_APPSECRET&redirect_uri=YOUR_REDIRECT_URI&code=CODE";

	//订单详细
	public final static String GET_ORDERDETAIL_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.trade/alibaba.trade.get.buyerView/YOUR_APPKEY";

	//订单物流跟踪信息
	public final static String GET_ORDERTRACEINFO_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.logistics/alibaba.trade.getLogisticsTraceInfo.buyerView/YOUR_APPKEY";

	//获取订单支付URL地址
	public final static String GET_ORDERALIPAY_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.trade/alibaba.alipay.url.get/YOUR_APPKEY";

	//订单物流信息
	public final static String GET_ORDERLOGISTICSINFO_URL = "http://gw.open.1688.com/openapi/param2/1/com.alibaba.logistics/alibaba.trade.getLogisticsInfos.buyerView/YOUR_APPKEY";

	public static String AMAZON_SHOP_ORDER_REFRESH = "refresh-amazon-shop-order";

	public static Map<String, String> AMAZON_SALES_CHANNEL_MAP = new HashMap<String, String>() {
		private static final long serialVersionUID = 1L;
		{

			put("Amazon.ca", "CA");
			put("Amazon.co.jp", "JP");
			put("Amazon.co.uk", "GB");
			put("Amazon.com", "US");
			put("Amazon.de", "DE");
			put("Amazon.es", "ES");
			put("Amazon.fr", "FR");
			put("Amazon.it", "IT");
			put("Amazon.nl", "NL");
			put("Amazon.pl", "PL");
			put("Amazon.se", "SE");
			put("Amazon.com.mx", "MX");
			put("Amazon.com.tr", "TR");
			put("Amazon.cn", "CN");
			put("Amazon.br", "BR");
			put("Amazon.com.br", "BR");
			put("Amazon.in", "IN");
			put("Amazon.sa", "SA");
			put("Amazon.ae", "AE");
			put("Amazon.eg", "EG");
			put("Amazon.sg", "SG");
			put("Amazon.au", "AU");
			put("Amazon.com.au", "AU");
			put("Amazon.com.be", "BE");
			put("SI CA Prod Marketplace", "CA");
			put("SI Prod ES Marketplace", "ES");
			put("SI Prod IT Marketplace", "IT");
			put("SI UK Prod Marketplace", "GB");
		}
	};

	public static Map<String, String> BID_TABLE_MAP = new HashMap<String, String>() {
		private static final long serialVersionUID = 1L;
		{

			put("GSBA", "THR_OperateCompanyApply");
			put("XXXX", "TABLE_XXXXX");
		}
	};
	
	public static String BOUTIQUE_VGSBM = "GS0641"; // 精品库存所属的公司编码
	
	public static String STOCK_VGSBM = "GS0608"; // 精品库存所属的公司编码
	
	public static String URL_UPLOAD = "https://file.mini-ease.com/api/outer/upload/uploadForERP_1_0"; // 上传路径
	
	public static String URL_SYN_FROM_TEST = "https://admin.mini-ease.com/api/outer/syn/synFromTest"; // 同步数据路径

	public static String URL_SYN_FROM_DEV = "https://admintest.mini-ease.com/api/outer/syn/synFromTest"; // 同步数据路径

	public static String PATH_NOTIFY_WF = "/api/outer/wfStore/notifyFromWF"; // 万里汇回调通知路径
	
	public static String URL_AVATAR = "https://file.mini-ease.com/upload/nomodule/2024/07/16/144330885.png"; // 默认头像地址
	
	public static String URL_DICT = "https://admin.mini-ease.com/upload/sys/dict.json"; // 字典JSON地址
}
